package bird;

/**
 * 鸵鸟
 * Created by Frank on 2017/8/28.
 */

public class Ostrich extends Bird {

    @Override
    public void fly() {
    }

    public double getVelocity() {
        return 0d;
    } // 获取到的也是0

    /**
     * 获取速度
     *
     * @param velocity 速度
     */
    public void setVelocity(double velocity) {
        this.velocity = 0d;
    } // 设置为0


}
